<?php

$url = 'http://www.163.com/';

$ch = curl_init();
$CURLOPT_HTTPHEADER_OPTIONS = array(	
		'Accept'=>'	text/html, application/xhtml+xml,',
		'Accept-Encoding'=>'	gzip, deflate',
		'Accept-Language'=>'	zh-CN',
		'Connection'=>'	Keep-Alive',	
		'User-Agent'=>'	Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)',
	);
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,0);
curl_setopt($ch,CURLOPT_FOLLOWLOCATION,1);
curl_setopt($ch,CURLOPT_HEADER,false);
curl_setopt($ch,CURLOPT_HTTPHEADER,$CURLOPT_HTTPHEADER_OPTIONS);




curl_exec($ch);


curl_close($ch);

?>